package model;

import java.util.ArrayList;
import java.util.List;

public class ItemDAO {

	public List<ItemVenda> listarItens() throws Throwable {
		List<ItemVenda> li = new ArrayList<ItemVenda>();

/*		try {
			Connection conn = ConexaoBD.getInstance().conectar();
			PreparedStatement ps = conn
					.prepareStatement("SELECT * FROM item_01083333");
			ResultSet rs = ps.executeQuery();

			while (rs.next()) {
				ItemVenda item = new ItemVenda();
				item.setIdItem(rs.getInt("idItem"));
				item.setDescrItem(rs.getString("descrItem"));
				li.add(item);
			}
		} catch (Throwable t) {
			t.printStackTrace();
			throw t;
		} finally {
			ConexaoBD.getInstance().desconectar();
		}*/
		return li;
	}
}
